-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add pagination to datasets #2512
Conversation
Signed-off-by: Michael Robinson <merobi@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #2512 +/- ##
=========================================
Coverage 83.80% 83.80%
Complexity 1233 1233
=========================================
Files 235 235
Lines 5625 5625
Branches 270 270
=========================================
Hits 4714 4714
Misses 767 767
Partials 144 144 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
web/src/routes/datasets/Datasets.tsx
Outdated
page: 1, | ||
pageIsLast: false | ||
} | ||
this.pageSize = 20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would declare this as a const outside of the component like
const PAGE_SIZE = 20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phixMe that fixed the issue. Thank you.
Signed-off-by: Michael Robinson <merobi@gmail.com>
Signed-off-by: Michael Robinson <merobi@gmail.com>
Signed-off-by: Michael Robinson <merobi@gmail.com>
Signed-off-by: Michael Robinson <merobi@gmail.com>
* add pagination to datasets --------- Signed-off-by: Michael Robinson <merobi@gmail.com> Signed-off-by: Xavier-Cliquennois <xavier.cliquennois@wearegraphite.io>
Problem
Pagination would make viewing datasets in namespaces with many datasets more manageable, as in the case of events. But currently datasets are not paginated.
Solution
This paginates the datasets route in the same way events are paginated.
One-line summary: adds pagination to datasets
Checklist
CHANGELOG.md
(Depending on the change, this may not be necessary)..sql
database schema migration according to Flyway's naming convention (if relevant)